Skip to main content

StringSplit

StringSplit["string"] splits "string" into a list of substrings separated by whitespace. 

StringSplit["string",patt] splits into substrings separated by delimiters matching the string expression patt.

StringSplit["string",{p1,p2,…}] splits at any of the pi.

StringSplit["string",patt->val] inserts val at the position of each delimiter.

StringSplit["string",{p1->v1,…}] inserts vi at the position of each delimiter pi.

StringSplit["string",patt,n] splits into at most n substrings.

StringSplit[{s1,s2,…},p] gives the list of results for each of the si.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.